package com.blue.core.excel;

import com.blue.core.util.JsonUtil;

import java.io.File;
import java.util.List;

/**
 * @author zhengjin
 * @since 1.0 2017年12月26日
 */
public class ExcelImporterMain
{
	public ExcelImporterMain()
	{
	}

	public static void main(String[] args) throws Exception
	{
		List<User> list = ExcelImporter.input(User.class, new File("/opt/test.xls"), true);
		System.out.println(list.size());
		for (User user : list)
		{
			System.out.println(JsonUtil.output(user));
		}
	}

}
